<?php
class Catalog_Form_SpecialAdminList extends Zend_Form
{
    public function init()
    {
        $this->setMethod('post');

        // Add Element Date Picker
        $elem = new ZendX_JQuery_Form_Element_DatePicker("interval_start", array("label" => "From"));
        $elem->addValidator('Date');
        $elem->addValidator(new Areal_Validate_DateLessOrEqualThan('interval_end'));
        $elem->setJQueryParam('dateFormat', 'yy-mm-dd');
        $this->addElement($elem);

        // Add Element Date Picker
        $elem = new ZendX_JQuery_Form_Element_DatePicker("interval_end", array("label" => "Till"));
        $elem->addValidator('Date');
        $elem->setJQueryParam('dateFormat', 'yy-mm-dd');
        $this->addElement($elem);

        $this->addElement('submit', 'submit', array(
            'label'    => 'Filter',
        ));


    }
}
